<?php
include_once("fileRow2array.php");
function file2history($file)	{
	$arrTemp	=	array();
	$arrHistory	=	array();
	$arrRow	=	fileRow2array($file);
	foreach($arrRow as $strRow)	{
		$arrTemp	=	explode(",",$strRow);
		$colNum		=	count($arrTemp);
		$index	=	(string)$arrTemp[0];
		$arrHistory[$index]=array();
		for($i=1;$i<$colNum;$i++)	{
			$arrHistory[$index][]	=	(int)$arrTemp[$i];
		}
	}
	return $arrHistory;
}
?>